import { defineStore } from 'pinia';

export const useShoppingCartStore = defineStore('all-shopping-cart', {
	state: () => {
		return {
			isShowDelete: false, // 是否显示删除
		}
	},

	getters: {

	},

	actions: {
		// 重置store
		RESET_STORE() {
			this.$reset();
		},

		// 显示删除
		SET_SHOW_DELETE() {
			this.isShowDelete = true;
		},

		// 隐藏删除
		SET_HIDE_DELETE() {
			this.isShowDelete = false;
		},

		// 切换删除
		SET_TOGGLE_DELETE() {
			this.isShowDelete = !this.isShowDelete;
		},
	},
})